
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

// 间距
SizedBox hiSpace({double height = 1, double width = 1}){
  return SizedBox(height: height,width: width);
}

// 阴影
Widget shadowWrap({required Widget child, EdgeInsetsGeometry? padding}){
  return Container(
    padding: padding,
    decoration: const BoxDecoration(
      gradient: LinearGradient(
        colors: [Color(0x66000000), Colors.transparent],
        begin: Alignment.topCenter,
        end: Alignment.bottomCenter
      )
    ),
    child: child,
  );
}